<?php

class Exts_Views_Helpers_Twitter extends Zend_View_Helper_Abstract {

	public function twitter() {
		return $this;
	}

	public function tweet( $url, $text ) {
		if (APPLICATION_ENV != 'production') {
			//return '';
		}

		$url = urlencode( $url );
		return '
		<a href="http://twitter.com/share" data-text="'.$text. ' #paintball" class="twitter-share-button" data-count="horizontal" data-via="arpaintball">Tweet</a>
		<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
		';
	}

}
